package com.luoxiang.socialandroid.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.luoxiang.socialandroid.R
import com.luoxiang.socialandroid.bean.ReportData

class TradeUnionDataAdapter(data: MutableList<ReportData>) : BaseQuickAdapter<ReportData,BaseViewHolder>(R.layout.item_trade_union_data,data) {
    override fun convert(holder: BaseViewHolder, item: ReportData) {
        holder.apply {
            setText(R.id.textDate,item.date)
            setText(R.id.textRegisterNum,item.registerNum.toString())
            setText(R.id.textRechargeAmount,item.rechargeAmount.toString())
            setText(R.id.textRechargeCredit,item.rechargeCredit.toString())
            setText(R.id.textVipRechargeCredit,item.vipRechargeCredit.toString())
            setText(R.id.textActivityCredit,item.activityCredit.toString())
            setText(R.id.textInviteCredit,item.inviteCredit.toString())
            setText(R.id.textOtherCredit,item.otherCredit.toString())
            setText(R.id.textTotalCredit,item.totalCredit.toString())
        }
    }
}